How to Fix TypeError: string indices must be integers in Python File Handling Code

visit shbcf.ru